﻿using CommunityToolkit.Mvvm.ComponentModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using XYAC.Framework.MonitorTireMaterialManual.DataExporter;
using XYAC.Framework.MonitorTireMaterialManual.OracleRemoteDB;

namespace XYAC.Framework.MonitorTireMaterialManual.Entities
{
    public partial class SemiSteelSideInspectionReport : ReportEntityBase
    {
        public SemiSteelSideInspectionReport()
        {
            LastSyncDate = DateTime.Now;
        }
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public override int ID { get; set; }
        public override bool? IsDeleted { get; set; }
        //public string? UserId { get; set; }
        /// <summary>
        /// 补偿系数
        /// </summary>
        [ObservableProperty]
        [Description("补偿系数")]
        private double? _compensationCoefficient = 0.0;

        /// <summary>
        /// 规格号
        /// </summary>
        [Description("规格号")]
        [ObservableProperty]
        private string? _specName;

        /// <summary>
        /// 实际规格号
        /// </summary>
        [Description("实际规格号")]
        [ObservableProperty]
        private string? _specNameInfact;

        /// <summary>
        /// 总面积=左设定面积+右设定面积
        /// 
        /// </summary>
        [Description("总面积")]
        [ObservableProperty]
        private double? _totalArea=0.0;

        [ObservableProperty]
        private double? _totalLeftArea=0.0;

        [ObservableProperty]
        private double? _totalRightArea=0.0;

        [ObservableProperty]
        private double? _measureArea=0.0;

        [ObservableProperty]
        private double? _measureLeftArea=0.0;

        [ObservableProperty]
        private double? _measureRightArea=0.0;

        [ObservableProperty]
        private string? _serialNumber;
        [ObservableProperty]
        private string?  _scanedDatetime;

        /// <summary>
        /// 总宽标准=左宽标准+右宽标准
        /// </summary>
        [Description("总宽标准")]
        [ObservableProperty]
        private double? _totalWidth_Stable=0.0;

        /// <summary>
        /// 总宽扫描=总宽扫描-左+总宽扫描-右
        /// 左宽实际+右宽实际
        /// </summary>
        [ObservableProperty]
        private double? _totalWidth_Scan=0.0;
        /// <summary>
        /// 总宽扫描-左
        /// </summary>
        [Description("总宽扫描-左")]
        [ObservableProperty]
        private double? _totalWidth_ScanLeft = 0.0;
        /// <summary>
        /// 总宽扫描-右
        /// </summary>
        [Description("总宽扫描-右")]
        [ObservableProperty]
        private double? _totalWidth_ScanRight = 0.0;

        /// <summary>
        /// 总宽对称性
        /// </summary>
        [Description("总宽对称性")]
        [ObservableProperty]
        private double? _totalWidth_Symmetry = 0.0;

        /// <summary>
        /// 胎侧厚度标准
        /// </summary>
        [ObservableProperty]
        private double? _sidewallThickness_Stable = 0.0;

        /// <summary>
        /// 胎侧厚度扫描-左
        /// </summary>
        [ObservableProperty]
        private double? _sidewallThickness_ScanLeft = 0.0;
        /// <summary>
        /// 胎侧厚度扫描-右
        /// </summary>
        [ObservableProperty]
        private double? _sidewallThickness_ScanRight = 0.0;

        /// <summary>
        /// 胎侧厚度对称性
        /// </summary>
        [ObservableProperty]
        private double? _sidewallThickness_Symmetry = 0.0;
        /// <summary>
        /// RC胶厚度标准
        /// </summary>
        [ObservableProperty]
        private double? _rCRubberThickness_Stable = 0.0;
        /// <summary>
        /// RC胶厚度扫描左
        /// </summary>
        [ObservableProperty]
        private double? _rCRubberThickness_ScanLeft = 0.0;
        /// <summary>
        /// RC胶厚度扫描右
        /// </summary>
        [ObservableProperty]
        private double? _rCRubberThickness_ScanRight = 0.0;
        /// <summary>
        /// RC胶厚度对称性
        /// </summary>
        [ObservableProperty]
        private double? _rCRubberThickness_Symmetry = 0.0;
        /// <summary>
        /// 断面形状
        /// </summary>
        [ObservableProperty]
        private string? _crossSectionShape;
        /// <summary>
        /// 机台编号
        /// </summary>
        [Description("机台编号")]
        [ObservableProperty]
        private string? _eqp;
        /// <summary>
        /// 最后同步时间
        /// </summary>
        [ObservableProperty]
        private DateTime? _lastSyncDate;
        /// <summary>
        /// 同步状态
        /// </summary>
        [ObservableProperty]
        private Boolean _syncState   = false;
        [ObservableProperty]
        [Description("中心参考")]
        private double? _xReference = 0.0;
        /// <summary>
        /// 胎侧：TXT文档，[Keys]（总行数/2）+1行的左边数字
        /// 胎侧左宽度标准值
        /// </summary>
        [ObservableProperty]
        [Description("胎侧左宽度标准值")]
        private float? _sideLeftWidth=0.0f;

        /// <summary>
        /// 胎侧：TXT文档，[Keys]（总行数/2）+1行的左边数字
        /// 胎侧右宽度
        /// </summary>
        [ObservableProperty]
        [Description("胎侧右宽度")]
        private float? _sideRightWidth=0.0f;

        /// <summary>
        /// 胎侧：TXT文档，[Keys]（总行数/2）+1行的左边数字
        /// 胎侧右宽度标准值
        /// </summary>
        [ObservableProperty]
        [Description("胎侧右宽度标准值")]
        private float? _sideRightWidthInfact=0.0f;
        /// <summary>
        /// 胎侧：TXT文档，[Keys]（总行数/2）+1行的左边数字
        /// 胎侧左宽度,它实际上=XReference
        /// </summary>
        [ObservableProperty]
        [Description("胎侧左宽度")]
        private float? _sideLeftWidthInfact=0.0f;
        /// <summary>
        /// 胎侧左右宽度差(mm)
        /// ABS(左边宽度-右边宽度)
        /// </summary>
        [ObservableProperty]
        [Description("胎侧左右宽度差(mm)")]
        private float? _leftRightSubstract=0.0f;

        /// <summary>
        /// 边缘端点厚度(mm) = MeasureKeys第1组第2位
        /// </summary>
        [ObservableProperty]
        [Description("边缘端点厚度(mm)")]
        private float? _endThick=0.0f;

        [ObservableProperty]
        private string? _userId;

        /// <summary>
        /// 总面积 %    实测值
        /// SemiSteelSideInspectionReport.AreaPercent
        /// </summary>
        [ObservableProperty]
        [Description("总面积比")]
        private float? _data9=0.0f;

        /// <summary>
        /// 胎侧宽度(mm)  左 标准
        /// SemiSteelSideInspectionReport.SideLeftWidth
        /// </summary>
        [ObservableProperty]
        [Description("胎侧左标准宽度(mm)")]
        private float? _data10=0.0f;
        /// <summary>
        /// 胎侧宽度(mm)  左 实测
        /// SemiSteelSideInspectionReport.SideLeftWidthInfact
        /// </summary>
        [ObservableProperty]
        [Description("胎侧左实测宽度(mm)")]
        private float? _data14 = 0.0f;

        /// <summary>
        /// 胎侧宽度(mm)  右 标准
        /// SemiSteelSideInspectionReport.SideRightWidth
        /// </summary>
        [ObservableProperty]
        [Description("胎侧右标准宽度(mm)")]
        private float? _data11 = 0.0f;
        /// <summary>
        /// 胎侧宽度(mm)  右 实测
        /// SemiSteelSideInspectionReport.SideRightWidthInfact
        /// </summary>
        [ObservableProperty]
        [Description("胎侧右实测宽度(mm)")]
        private float? _data15 = 0.0f;

        /// <summary>
        /// 胎侧左右宽度差(mm) 实测
        /// SemiSteelSideInspectionReport.LeftRightSubstract
        /// </summary>
        [ObservableProperty]
        [Description("胎侧左右宽度差(mm)实测")]
        private float? _data18 = 0.0f;
        /// <summary>
        /// 边缘端点厚度(mm) 左
        /// TXT文档，[MeasureKeys]第一行右边数字,RECORD118
        /// </summary>
        [ObservableProperty]
        [Description("边缘端点厚度(mm) 左实测？")]
        private float? _data20 = 0.0f;
        /// <summary>
        /// 边缘端点厚度(mm) 左
        /// TXT文档，[MeasureKeys]（总行数/2）+1行的右边数字,RECORD119
        /// </summary>
        [ObservableProperty]
        [Description("边缘端点厚度(mm) 左实测？")]
        private float? _data21 = 0.0f;
        /// <summary>
        /// 边缘端点厚度(mm) 右
        /// TXT文档，[MeasureKeys]（总行数/2）+1行的右边数字,RECORD120
        /// </summary>
        [ObservableProperty]
        [Description("边缘端点厚度(mm) 右实测")]
        private float? _data22 = 0.0f;
        /// <summary>
        /// 边缘端点厚度(mm) 右
        /// TXT文档，[MeasureKeys]最后一行右边数字，RECORD121
        /// </summary>
        [ObservableProperty]
        [Description("边缘端点厚度(mm) 右实测")]
        private float? _data23 = 0.0f;
 
        /// <summary>
        /// 胎侧左右厚度差(mm) 实测值：
        /// ABS(左边厚度-右边厚度)
        /// </summary>
        [ObservableProperty]
        [Description("胎侧左右厚度差(mm) 实测值")]
        private float? _data27 = 0.0f;
        /// <summary>
        /// RC左右厚度差(mm) 实测值:
        /// ABS（左边厚度-右边厚度）
        /// </summary>
        [ObservableProperty]
        [Description("RC左右厚度差(mm) 实测值")]
        private float? _data35 = 0.0f;
        /// <summary>
        /// 边缘端点厚度(mm) 实测值
        /// SemiSteelSideInspectionReport.EndThick
        /// </summary>
        [Obsolete("已废弃")]
        [ObservableProperty]
        private float? _data37 = 0.0f;
        /// <summary>
        /// 其它点厚度(mm) 
        /// </summary>
        [ObservableProperty]
        [Description("其它点厚度(mm)1")]
        private string? _checkPoint38= "True";
        /// <summary>
        /// 其它点厚度(mm)
        /// </summary>
        [ObservableProperty]
        [Description("其它点厚度(mm)2")]
        private string? _checkPoint39 = "True";


        [ObservableProperty]
        private float? _manuData10D = 0.0f;
        [ObservableProperty]
        private float? _manuData10F = 0.0f;
        [ObservableProperty]
        private float? _manuData11D = 0.0f;
        [ObservableProperty]
        private float? _manuData11F = 0.0f;

        [ObservableProperty]
        private float? _manuData13D = 0.0f;
        [ObservableProperty]
        private float? _manuData13F = 0.0f;
        [ObservableProperty]
        private float? _manuData14D = 0.0f;
        [ObservableProperty]
        private float? _manuData14F = 0.0f;

        /// <summary>
        /// RC上宽度(mm) 左 标准
        /// </summary>
        [ObservableProperty]
        private float? _manuData18D = 0.0f;
        /// <summary>
        /// RC上宽度(mm) 左 公差
        /// </summary>
        [ObservableProperty]
        private float? _manuData18E = 0.0f;
        /// <summary>
        /// RC上宽度(mm) 左 实际测量值
        /// </summary>
        [ObservableProperty]
        private float? _manuData18F = 0.0f;

        /// <summary>
        /// RC上宽度(mm) 右 标准
        /// </summary>
        [ObservableProperty]
        private float? _manuData19D = 0.0f;
        /// <summary>
        /// RC上宽度(mm) 右 公差
        /// </summary>
        [ObservableProperty]
        private float? _manuData19E = 0.0f;
        /// <summary>
        /// RC上宽度(mm) 右 实际测量值
        /// </summary>
        [ObservableProperty]
        private float? _manuData19F = 0.0f;

        /// <summary>
        /// RC下宽度(mm) 左 标准
        /// </summary>
        [ObservableProperty]
        private float? _manuData20D = 0.0f;
        /// <summary>
        /// RC下宽度(mm) 左 公差
        /// </summary>
        [ObservableProperty]
        private float? _manuData20E = 0.0f;
        /// <summary>
        /// RC下宽度(mm) 左 实际测量值
        /// </summary>
        [ObservableProperty]
        private float? _manuData20F = 0.0f;

        /// <summary>
        /// RC下宽度(mm) 右 标准
        /// </summary>
        [ObservableProperty]
        private float? _manuData21D = 0.0f;
        /// <summary>
        /// RC下宽度(mm) 右 公差
        /// </summary>
        [ObservableProperty]
        private float? _manuData21E = 0.0f;
        /// <summary>
        /// RC下宽度(mm) 右 实际测量值
        /// </summary>
        [ObservableProperty]
        private float? _manuData21F = 0.0f;

        /// <summary>
        /// RC左右宽度差(mm) 标准
        /// RC（上宽度）左右宽度差(mm)
        /// </summary>
        [ObservableProperty]
        private float? _manuData22D = 0.0f;
        /// <summary>
        /// RC左右宽度差(mm) 公差
        /// </summary>
        [ObservableProperty]
        private float? _manuData22E = 0.0f;
        /// <summary>
        /// RC左右宽度差(mm) 实际测量值
        /// </summary>
        [ObservableProperty]
        private float? _manuData22F = 0.0f;

        /// <summary>
        /// RC左右宽度差(mm) 标准
        /// RC（下宽度）左右宽度差(mm)
        /// </summary>
        [ObservableProperty]
        private float? _manuData22DX = 0.0f;
        /// <summary>
        /// RC左右宽度差(mm) 公差
        /// </summary>
        [ObservableProperty]
        private float? _manuData22EX = 0.0f;
        /// <summary>
        /// RC左右宽度差(mm) 实际测量值
        /// </summary>
        [ObservableProperty]
        private float? _manuData22FX = 0.0f;

        /// <summary>
        /// 白胶宽度(mm) 标准
        /// </summary>
        [ObservableProperty]
        private float? _manuData23D = 0.0f;
        /// <summary>
        /// 白胶宽度(mm) 公差
        /// </summary>
        [ObservableProperty]
        private float? _manuData23E = 0.0f;
        /// <summary>
        /// 白胶宽度(mm) 实际测量值
        /// </summary>
        [ObservableProperty]
        private float? _manuData23F     =0.0f;

        /// <summary>
        /// 白胶厚度(mm) 标准
        /// </summary>
        [ObservableProperty]
        private float? _manuData24D = 0.0f;
        /// <summary>
        /// 白胶厚度(mm) 公差
        /// </summary>
        [ObservableProperty]
        private float? _manuData24E = 0.0f;
        /// <summary>
        /// 白胶厚度(mm) 实际测量值
        /// </summary>
        [ObservableProperty]
        private float? _manuData24F = 0.0f;

        /// <summary>
        /// 白胶底黑胶厚度(mm) 标准
        /// </summary>
        [ObservableProperty]
        private float? _manuData25D = 0.0f;
        /// <summary>
        /// 白胶底黑胶厚度(mm) 公差
        /// </summary>
        [ObservableProperty]
        private float? _manuData25E = 0.0f;
        /// <summary>
        /// 白胶底黑胶厚度(mm) 实际测量值
        /// </summary>
        [ObservableProperty]
        private float? _manuData25F = 0.0f;

        /// <summary>
        /// 补强胶厚度(mm) 左 标准
        /// </summary>
        [ObservableProperty]
        private float? _manuData26D = 0.0f;
        /// <summary>
        /// 补强胶厚度(mm) 左 公差
        /// </summary>
        [ObservableProperty]
        private float? _manuData26E = 0.0f;
        /// <summary>
        /// 补强胶厚度(mm) 左 实际测量值
        /// </summary>
        [ObservableProperty]
        private float? _manuData26F = 0.0f;

        /// <summary>
        /// 补强胶厚度(mm) 右 标准
        /// </summary>
        [ObservableProperty]
        private float? _manuData27D = 0.0f;
        /// <summary>
        /// 补强胶厚度(mm) 右 公差
        /// </summary>
        [ObservableProperty]
        private float? _manuData27E = 0.0f;
        /// <summary>
        /// 补强胶厚度(mm) 右 实际测量值
        /// </summary>
        [ObservableProperty]
        private float? _manuData27F = 0.0f;

        /// <summary>
        /// 补强胶端点距离(mm)) 左 标准
        /// </summary>
        [ObservableProperty]
        private float? _manuData28D = 0.0f;
        /// <summary>
        /// 补强胶端点距离(mm)) 左 公差
        /// </summary>
        [ObservableProperty]
        private float? _manuData28E = 0.0f;
        /// <summary>
        /// 补强胶端点距离(mm)) 左 实际测量值
        /// </summary>
        [ObservableProperty]
        private float? _manuData28F = 0.0f;

        /// <summary>
        /// 补强胶端点距离(mm)) 右 标准
        /// </summary>
        [ObservableProperty]
        private float? _manuData29D = 0.0f;
        /// <summary>
        /// 补强胶端点距离(mm)) 右 公差
        /// </summary>
        [ObservableProperty]
        private float? _manuData29E = 0.0f;
        /// <summary>
        /// 补强胶端点距离(mm)) 右 实际测量值
        /// </summary>
        [ObservableProperty]
        private float? _manuData29F = 0.0f  ;

        /// <summary>
        /// 断面形状
        /// </summary>
        [ObservableProperty]
        [Description("断面形状")]
        private string? _checkPoint40 = "True";

        /// <summary>
        /// 判定 41
        /// </summary>
        [ObservableProperty]
        [Description("判定")]
        private string? _passStatus = "True";

        /// <summary>
        /// 备注
        /// </summary>
        [ObservableProperty]
        
        private string? _remark;
        /// <summary>
        /// 将 SemiSteelSideInspectionReport 实例转换为 YB_PROCESS_STEP 实例。
        /// </summary>
        /// <param name="report">要转换的 SemiSteelSideInspectionReport 实例。</param>
        /// <returns>转换后的 YB_PROCESS_STEP 实例。</returns>
        public override YB_PROCESS_STEP ToYB_PROCESS_STEP(DataFile dataFile)
        {
            //var dataFile = DataFile.FromSpecVal(this.SpecVal);
            var processStep = new YB_PROCESS_STEP
            {
                // 映射 SemiSteelSideInspectionReport 的字段到 RECORD16 至 RECORD32 
                PLAN_ID = this.PlanId,
                PART_NUMBER = this.SpecName,

                //RECORD122 = this.TotalArea?.ToString("F1"),//总面积设定值
                //RECORD123 = this.MeasureArea?.ToString("F1"),//总面积实际值
                //RECORD124 = this.TotalLeftArea?.ToString("F1"),//左面积设定值
                //RECORD125 = this.MeasureLeftArea?.ToString("F1"),//左面积实际值
                //RECORD126 = this.TotalRightArea?.ToString("F1"),//右面积设定值
                //RECORD127 = this.MeasureRightArea?.ToString("F1"),//右面积实际值
                //RECORD128 = this.TotalWidth_Stable?.ToString("F1"),//总宽设定值
                //RECORD129 = this.TotalWidth_Scan?.ToString("F1"),//总宽实际值

                //左侧宽设定值
                RECORD130 =this.Data10?.ToString("F1"), //(this.TotalWidth_Scan / 2).ToString("F1"),//左侧宽设定值
                RECORD131 = this.Data14?.ToString("F1"),// this.TotalWidth_ScanLeft.ToString("F1"),//左侧宽实际值

                //右侧宽设定值
                RECORD132 = this.Data11?.ToString("F1"), //(this.TotalWidth_Stable / 2).ToString("F1"),//右侧宽设定值
                RECORD133 = this.Data15?.ToString("F1"), //this.TotalWidth_ScanRight.ToString("F1"),//右侧宽实际值

                RECORD162 = this.SpecNameInfact,//   实际规格

                //胎侧厚度标准
                //RECORD140 = this.SidewallThickness_Stable.ToString("F1"),
                //RECORD141 = this.SidewallThickness_ScanLeft.ToString("F1"),
                //RECORD143 = this.SidewallThickness_ScanRight.ToString("F1"),
                RECORD163 = this.SidewallThickness_Symmetry?.ToString("F1"),
                //RC胶厚度标准
                //RECORD169 = this.RCRubberThickness_Stable.ToString("F1"),
                //RECORD170 = this.RCRubberThickness_ScanLeft.ToString("F1"),
                //RECORD171 = this.RCRubberThickness_ScanRight.ToString("F1"),
                //RECORD172 = this.RCRubberThickness_Symmetry.ToString("F1"),

                RECORD134 = this.Data9?.ToString("F1"),//   胎侧左厚度设定值
                RECORD135 = this.Data14?.ToString("F1"),//   胎侧左厚度实际值
                RECORD136 = this.Data11?.ToString("F1"),//   胎侧右厚度设定值
                RECORD137 = this.Data15?.ToString("F1"),//   胎侧右厚度实际值

                RECORD118 = this.Data20?.ToString("F1"),//   左胎侧左端点厚度    TXT文档，[MeasureKeys]第一行右边数字
                RECORD119 = this.Data21?.ToString("F1"),//   左胎侧右端点厚度    TXT文档，[MeasureKeys]（总行数 / 2）+1行的右边数字
                RECORD120 = this.Data22?.ToString("F1"),//   右胎侧左端点厚度    TXT文档，[MeasureKeys]（总行数 / 2）+1行的右边数字
                RECORD121 = this.Data23?.ToString("F1"),//   右胎侧右端点厚度    TXT文档，[MeasureKeys]最后一行右边数字

                RECORD165 = Math.Abs(Data14.Value - Data15.Value).ToString("F1"),//  胎侧宽度对称性

                RECORD138 = this.ManuData23D?.ToString("F1"),//   白胶宽度设定值
                RECORD139 = this.ManuData23E?.ToString("F1"),//    白胶宽度公差
                RECORD140 = this.ManuData23F?.ToString("F1"),//    白胶宽度实际值
                RECORD141 = this.ManuData24D?.ToString("F1"),//    白胶厚度设定值
                RECORD142 = this.ManuData24E?.ToString("F1"),//    白胶厚度公差
                RECORD143 = this.ManuData24F?.ToString("F1"),//    白胶厚度实际值
                RECORD144 = this.ManuData25D?.ToString("F1"),//    白胶底黑胶厚度设定值
                RECORD145 = this.ManuData25E?.ToString("F1"),//    白胶底黑胶厚度公差
                RECORD146 = this.ManuData25F?.ToString("F1"),//    白胶底黑胶厚度实际值
                RECORD147 = this.ManuData26D?.ToString("F1"),//    补强胶左厚度设定值
                RECORD148 = this.ManuData26E?.ToString("F1"),//  补强胶左厚度公差
                RECORD149 = this.ManuData26F?.ToString("F1"),//  补强胶左厚度实际值
                RECORD150 = this.ManuData27D?.ToString("F1"),//  补强胶右厚度设定值
                RECORD151 = this.ManuData27E?.ToString("F1"),//  补强胶右厚度公差
                RECORD152 = this.ManuData27F?.ToString("F1"),//  补强胶右厚度实际值
                RECORD153 = this.ManuData28D?.ToString("F1"),//  补强胶左端点距离设定值
                RECORD154 = this.ManuData28E?.ToString("F1"),//  补强胶左端点距离公差
                RECORD155 = this.ManuData28F?.ToString("F1"),//  补强胶左端点距离实际值
                RECORD156 = this.ManuData29D?.ToString("F1"),//  补强胶右端点距离设定值
                RECORD157 = this.ManuData29E?.ToString("F1"),//  补强胶右端点距离公差
                RECORD158 = this.ManuData29F?.ToString("F1"),//  补强胶右端点距离实际值


                RECORD166 = this.ManuData13D?.ToString("F1"),//    RC胶左厚度设定值
                RECORD167 = this.ManuData14D?.ToString("F1"),//    RC胶右厚度设定值
                RECORD168 = this.ManuData13F?.ToString("F1"),//    RC胶左厚度实际值
                RECORD169 = this.ManuData14F?.ToString("F1"),//    RC胶右厚度实际值
                RECORD170 = this.Data35?.ToString("F1"),//  RC胶厚度对称性
                RECORD171 = this.Data37?.ToString("F1"),//  边缘端点厚度
                RECORD172 = this.CheckPoint38,//  其它点厚度设定值
                RECORD173 = this.CheckPoint39,//  其它点厚度实际值

                RECORD174 = this.ManuData18D?.ToString("F1"),//    RC上左宽度设定值
                RECORD175 = this.ManuData18E?.ToString("F1"),//    RC上左宽度公差
                RECORD176 = this.ManuData18F?.ToString("F1"),//    RC上左宽度设实际值
                RECORD177 = this.ManuData19D?.ToString("F1"),//    RC上右宽度设定值
                RECORD178 = this.ManuData19E?.ToString("F1"),//    RC上右宽度公差
                RECORD179 = this.ManuData19F?.ToString("F1"),//    RC上右宽度设实际值

                RECORD180 = Math.Abs(ManuData18F.Value - ManuData19F.Value).ToString("F1"),//    RC胶宽度对称性

                RECORD181 = this.ManuData20D?.ToString("F1"),//    RC下左宽度设定值
                RECORD182 = this.ManuData20E?.ToString("F1"),//    RC下左宽度公差
                RECORD183 = this.ManuData20F?.ToString("F1"),//    RC下左宽度设实际值
                RECORD228 = this.ManuData21D?.ToString("F1"),//    RC下右宽度设定值
                RECORD229 = this.ManuData21E?.ToString("F1"),//    RC下右宽度公差
                RECORD230 = this.ManuData21F?.ToString("F1"),//    RC下右宽度设实际值

                RECORD219 = this.ManuData22D?.ToString("F1"),//  RC（上宽度）左右宽度差标准值 填报表格获取
                RECORD220 = this.ManuData22E?.ToString("F1"),//  RC（上宽度）左右宽度差公差  填报表格获取
                RECORD221 = this.ManuData22F?.ToString("F1"),//  RC（上宽度）左右宽度差实际值 填报表格获取
                RECORD222 = this.ManuData22DX?.ToString("F1"),//  RC（下宽度）左右宽度差标准值 填报表格获取
                RECORD223 = this.ManuData22EX?.ToString("F1"),//  RC（下宽度）左右宽度差公差  填报表格获取
                RECORD224 = this.ManuData22FX?.ToString("F1"),//  RC（下宽度）左右宽度差实际值 填报表格获取

                RECORD225 = this.PassStatus,//  判定结果
                RECORD226 = this.Remark, //备注
                RECORD227 = this.Shift,// 班次

                RECORD159 = this.UserId,
                //面积比
                RECORD160 = this.AreaPercent.ToString("F1"),
                RECORD161 = this.TotalWidth_Symmetry?.ToString("F1"),
                //断面形状
                RECORD164 = this.CheckPoint40,//  CrossSectionShape,
                EQP = this.Eqp

            };
            this.UpdateProcessStep(processStep, dataFile);
            return processStep;
        }

    }
}
